package com.project.rbac.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author nickBoy
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@NoArgsConstructor
public class SysDept extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 主键，自增
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 部门名称
     */
    @TableField("NAME")
    private String name;

    /**
     * 父主键
     */
    @TableField("PARENT_ID")
    private Integer parentId;

    /**
     * 级别,用来指明层级深度
     */
    @TableField("LEVEL")
    private String level;

    /**
     * 顺序，部门在当前父部门下的顺序
     */
    @TableField("SEQ")
    private Integer seq;

    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;

    /**
     * 操作人
     */
    @TableField("OPERATOR")
    private String operator;

    /**
     * 操作时间
     */
    @TableField("OPERATE_TIME")
    private LocalDateTime operateTime;

    /**
     * 操作ip
     */
    @TableField("OPERATE_IP")
    private String operateIp;


}
